Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

130
Visualizações
Paypal invoice status stays on "DRAFT"

i have got a problem recently trying to make a paypal invoice. well, check this code here.

paypal.invoice.create({
        merchant_info: {
            email: "EMAIL",
            first_name: "FIRST_NAME",
            last_name: "LAST_NAME",
            business_name: "NAME",
            phone: {
                country_code: "CODE",
                national_number: "NUMBER"
            },
            address: {
                line1: "STREET",
                city: "Riyadh",
                state: "Riyadh Province",
                postal_code: "0000",
                country_code: "SA"
            }
        },
        status: "UNPAID",
        billing_info: [{
            "email": "example@example.com"
        }],
        items: [],
        note: `Thank You For Buying`
    })

Ok, i got the invoice made and everything, but the status is "DRAFT", can someone explain please? btw i want the status to be "UNPAID"

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

PayPal-Node-SDK is deprecated, so don't use that. There is no supported SDK for the invoicing API; use direct API calls.

(Some of the HTTP call code in the newer Checkout-NodeJS-SDK could possibly be useful to you as a template)

Regarding the v2 invoicing API itself, invoices start in a DRAFT state on creation. There is an additional API call to send them, documented on that page.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda